from django.contrib import admin
from .models import UserFeedback, UserFeedbackTag

class FeedbackAdmin(admin.ModelAdmin):
	icon = '<i class="material-icons">feedback</i>'
	list_display = ('user_account_id','contact_way','platform','feedback_type','content')
	readonly_fields = ('user_account_id','contact_way','gmt_create','gmt_modified','feedback_type','tag','content','course_id','platform','learn_plan_id')
	list_filter = ( 'feedback_type','gmt_create')
	search_fields = ('user_account_id', 'contact_way', 'content', 'contact_way',)

class FeedbackTagAdmin(admin.ModelAdmin):
	list_filter = ( 'tag_name','id')
	icon = '<i class="material-icons">bookmark</i>'



# Register your models here.
admin.site.register(UserFeedback, FeedbackAdmin)
admin.site.register(UserFeedbackTag,FeedbackTagAdmin)
